#if NETFX_CORE
using System;
#else
using System.Windows;
#endif

namespace FreshMeat.Xaml
{
#if NETFX_CORE
   public enum MessageBoxResult
   {
      OK
   }

   public enum MessageBoxButton
   {
      OK,
      OKCancel
   }
#endif

   public static class MessageDialog
   {
      public static MessageBoxResult Show(string message, string title, MessageBoxButton buttons)
      {
#if NETFX_CORE
         throw new NotImplementedException(); // TODO: Figure out how to show dialog in NETFX_CORE
#elif SILVERLIGHT
         return MessageBox.Show(message, title, buttons);
#else
         var window = VisualHelper.GetWindow();
         if (window != null)
            return MessageBox.Show(window, message, title, buttons);
         return MessageBox.Show(message, title, buttons);
#endif
      }
   }
}